:bug: Fix Bug: sence typo

huangqimin001 4 anni fa
parent
commit
0bc5a8fa5b
4 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 1 1
      README.md
  2. 1 1
      api/urls.py
  3. 1 1
      api/wx_views.py
  4. 2 2
      hanyuan/django_we_callback_settings.py

+ 1 - 1
README.md

@@ -3,4 +3,4 @@
3 3
   
4 4
 # URLs
5 5
   * 服务器消息回调地址: http://hanyuan.xfoto.com.cn/w/callback
6
-  * 永久带参二维码地址: http://hanyuan.xfoto.com.cn/api/get_limit_sence_qrcode_url?sence=book
6
+  * 永久带参二维码地址: http://hanyuan.xfoto.com.cn/api/get_limit_scene_qrcode_url?scene=book

+ 1 - 1
api/urls.py

@@ -6,7 +6,7 @@ from api import oauth_views, wx_views
6 6
 
7 7
 
8 8
 urlpatterns = [
9
-    url(r'^get_limit_sence_qrcode_url$', wx_views.get_limit_sence_qrcode_url, name='get_limit_sence_qrcode_url'),
9
+    url(r'^get_limit_scene_qrcode_url$', wx_views.get_limit_scene_qrcode_url, name='get_limit_scene_qrcode_url'),
10 10
 ]
11 11
 
12 12
 urlpatterns += [

+ 1 - 1
api/wx_views.py

@@ -11,7 +11,7 @@ from utils.error.errno_utils import ParamStatusCode
11 11
 from utils.redis.connect import r
12 12
 
13 13
 
14
-def get_limit_sence_qrcode_url(request):
14
+def get_limit_scene_qrcode_url(request):
15 15
     scene = str(request.GET.get('scene', ''))
16 16
 
17 17
     if not scene:

+ 2 - 2
hanyuan/django_we_callback_settings.py

@@ -128,8 +128,8 @@ def DJANGO_WE_MESSAGE_CALLBACK_FUNC(request, xmldict, decrypted):
128 128
 
129 129
         # 根据场景值判断是否发会员卡
130 130
         if eventkey:
131
-            sence = parse_eventkey(eventkey, event='subscribe')
132
-            if sence:
131
+            scene = parse_eventkey(eventkey, event='subscribe')
132
+            if scene:
133 133
                 send_custom_card_message(
134 134
                     openid=openid,
135 135
                     card_id=settings.DJANGO_WE_MEMBER_CARD_ID,